<?php 

class specificationShow  {




	public function insert($parm){
		 DB::insert("sysSpecificationshow",array('productId','specificationsname','model'))
					 ->values(array($parm['productId'],$parm['specificationsname'],$parm['model']))
					 ->execute();
	}
	 	
	 public function delete($parm){

   		DB::delete('sysSpecificationshow')->where('productId','=',$parm['id'])->execute();
	}
	public function get($parm){
		$result = DB::select('*')->from('sysSpecificationshow')->where("productId","=",$parm['id'])->execute()->as_array();
		return $result;
	}
	public  function  getAllSpec($parm){
		$result =  DB::query(Database::SELECT,
			'select * from sysspecificationshow   where productId = '.$parm['productId'])->execute()->as_array();

		return $result;
	}

}